home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 May / macformat-050.iso / Shareware Plus / Developers / Find_icon folder / Headers / Get_resource_icons.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-25  |  2.0 KB  |  63 lines  |  [TEXT/CWIE]

  1. /*    ---------------------------------------------------------------------------------------------
  2.     Find_icon, code for constructing icon suites for files and folders
  3.     
  4.     by James W. Walker
  5.     preferred e-mail: <mailto:jwwalker@kagi.com>
  6.     alternate e-mail: <mailto:jwwalker@aol.com>, <jim@nisus-soft.com>
  7.     web: <http://users.aol.com/jwwalker/>
  8.     
  9.     File: Get_resource_icons.h
  10.     
  11.     Copyright ©1997 by James W. Walker
  12.     
  13.     You may incorporate this sample code into your applications without
  14.     restriction, though the sample code has been provided "AS IS" and the
  15.     responsibility for its operation is 100% yours.
  16.     If you're going to re-distribute the source, please make it clear
  17.     that the code was descended from James W. Walker's code,
  18.     but that you've made changes.
  19.     ---------------------------------------------------------------------------------------------
  20. */
  21.  
  22. #ifndef __TYPES__
  23.     #include <Types.h>
  24. #endif
  25.  
  26. #ifndef __ICONS__
  27.     #include <Icons.h>
  28. #endif
  29.  
  30. pascal OSErr Get1_resource_icons(
  31. /* <-- */    Handle *theSuite,
  32. /* --> */    short theID,
  33. /* --> */    IconSelectorValue theSelector
  34. );
  35. /*    ¶ Create an icon suite from resources.  It uses the Find_icon call
  36.     Get1IconSuite, but then copies the icons so that the suite will
  37.     not contain resources.
  38.     It is your responsibility to dispose of the suite when you are
  39.     done with it.
  40.     
  41.     theSuite    output:        the new icon suite
  42.     theID        input:        the resource ID of the icon resources
  43.     theSelector    input:        an icon type mask, as defined in <Icons.h>.
  44. */
  45.  
  46.  
  47. pascal OSErr Get_resource_icons(
  48. /* <-- */    Handle *theSuite,
  49. /* --> */    short theID,
  50. /* --> */    IconSelectorValue theSelector
  51. );
  52. /*    ¶ Create an icon suite from resources.  It uses the toolbox call
  53.     GetIconSuite, but then copies the icons so that the suite will
  54.     not contain resources.
  55.     It is your responsibility to dispose of the suite when you are
  56.     done with it.
  57.     
  58.     theSuite    output:        the new icon suite
  59.     theID        input:        the resource ID of the icon resources
  60.     theSelector    input:        an icon type mask, as defined in <Icons.h>.
  61. */
  62.  
  63.